<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>gymMain</title>
<link href="../css/style.css" rel="stylesheet" type="text/css"
	media="all" />
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--slider-->
<link rel="stylesheet" href="../css/flexslider.css" type="text/css"
	media="all" />
<!-- jQuery -->
<!-- FlexSlider -->

<link rel="stylesheet" type="text/css"
	href="../bootstrap/bootstrap.4.1.0.css">
<script src="../bootstrap/jquery.3.2.1.min.js"></script>
<script src="../bootstrap/popper.12.5.min.js"></script>
<script src="../bootstrap/bootstrap.4.1.0.min.js"></script>

<script src="../vue/Vue.js"></script>
<script src="../vue/axios.js"></script>
</head>
<body>
	<div id="app">
		<div class="header">
			<div class="wrap">
				<div class="logo">
					<h1></h1>
				</div>
				<div class="top-nav">
					<div class="menu">
						<ul>
							<li class=""><a href="gymMain.html">个人中心</a></li>
							<li class=""><a href="arrangeCourses.html">安排课程</a></li>
							<li class=""><a href="employeeList2.html">签约申请</a></li>
							<li class=""><a href="focusMe.html">关注我的</a></li>
							<li class=""><a href="mySignCoaches.html">我的签约教练</a></li>
							<li class="active"><a href="improveInformation.html">信息完善</a></li>
							<li class=""><a href="findPwd.html">密码找回</a></li>
						</ul>
						<div class="clear"></div>
					</div>
				</div>
				<div class="clear"></div>
			</div>
		</div>
		<!-- 正文 -->
		<form action="/gymInfo/upload" method="post"
			enctype="multipart/form-data">
			封面图片：<input type="file" name="gymImage"> <input
				type="submit" value="上传"><br>
		</form>
		场馆名称：<input type="text" v-model="gymName" /><br> 联系电话：<input
			type="text" v-model="phone" /><br> mail测试：<input type="text"
			v-model="mail" /><br> 场馆状态：<input type="text"
			v-model="gymInfoStatus" />(0不开)<br> QQ：<input type="text"
			v-model="qq" /><br>
			<button @click="submitt" >提交</button>
			<span v-if="message!=null">{{message}}</span>
		<div class="footer">
			<div class="wrap">
				<div class="section group">
					<div class="col_1_of_footer span_1_of_footer">
						<div class="location">
							<h3>地址</h3>
							<ul>
								<li>1-22-003-55,</li>
								<li>四川省成都市</li>
								<li>火车南站蜗牛hifit</li>
								<li>CHINA</li>
							</ul>
						</div>
					</div>
					<div class="col_1_of_footer span_1_of_footer">
						<h3>信息</h3>
						<p>hifit健身，创建于2005年，立足长三角，辐射全中国！专注健身15年，已发展成为中国大型直营健身连锁领跑者。截至2018年7月，hifit健身已拥有400+家签约及开业的直营门店。</p>
					</div>
					<div class="col_1_of_footer span_1_of_footer">
						<h3>品牌简介</h3>
						<div class="Testimonials_desc">
							<p>
								<span class="up"></span>hifit健身，立足长三角，专注健身14年，拥有400+家签约及开业的直营门店。累计发展会员人数300余万，每年新增约80万会员，每天约30万会员在全国各分店享受专业健身服务。<span
									class="down"><img src="" alt=""></span>
							</p>

						</div>
					</div>
					<div class="col_1_of_footer span_1_of_footer">
						<h3>联系我们</h3>
						<ul class="address">
							<li>蜗牛科技</li>
							<li><span>电话:</span> +86 132123456789</li>
							<li><span>座机:</span> +32 132 74895</li>
							<li><span>传真:</span> +69 320 832479</li>
						</ul>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div class="copy-right">
				<div class="wrap">

					<p class="copy">&copy; Copyright &copy; 2020.Cyh All rights
						reserved.</p>

				</div>
			</div>
		</div>
	</div>

</body>
<script type="text/javascript">
		
		new Vue({
			el:"#app",
			data:{
				place:"",
				gymName:"",
				phone:"",
				mail:"",
				gymInfoStatus:"",
				qq:"",
				message:""
			},
			methods:{
				
				///gymInfo/upload
				submitt:function(){
					var params = new URLSearchParams();
					params.append("mail",this.mail);
					params.append("gymInfoStatus",this.gymInfoStatus);
				
					axios.post(
						"/gymInfo/updateGymInfo",
						 //{"place":this.place,"gymName":this.gymName,"phone":this.phone,"mail":this.mail,"gymInfoStatus":this.gymInfoStatus}
						params
					).then(res => {		//res返回的结果
						//console.info(res);
						if(res.data==1){
							//成功
							this.message="修改成功";
						}else {
							this.message="修改失败";
						}
					});
				}
			}
		});
	</script>
</html>



